/*
 * @Author: zhanglianchang
 * @Date: 2020-08-01 14:39:32
 * @Last Modified by: taoshiwei
 * @Last Modified time: 2019-04-29 14:53:23
 *
 * 学科有关的接口：自己写吧~~  已经被张老师删了 ^_^
 */
import { createAPI } from '@/utils/request'

// 获取学科详情列表
export const getList = data => createAPI('/subjects', 'get', data)
// 根据 id 删除学科
export const delList = data => createAPI(`/subjects/${data.id}`, 'DELETE', data)
// 根据 id 修改学科
export const putList = data => createAPI(`/subjects/${data.id}`, 'put', data)
// 添加学科
export const addList = data => createAPI('/subjects', 'post', data)
